

package Project.GUI;

import java.sql.Connection;
import java.sql.DriverManager;

public class Dataconnect {
    public static Connection connectDB(){
        Connection conn = null;

        try {

            Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
            conn = DriverManager.getConnection("jdbc:odbc:JDBC","sa","123");
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
        return conn;

}
}
